<template>
    <div class="download">
   <Top><p>下载</p></Top>
    <div class="logo">
        <i class="el-icon-eleme"></i>
        <p>下载饿了么APP</p>
    </div>
        <div class="down" @click="down">下载</div>
<!-----------------弹框-------------------------->
<Tan><p>IOS用户请前往AppStore下载</p></Tan>
    </div>
</template>

<script>

    import Top from "@/components/Top";
    import Tan from "@/components/Tan";
    export default {
        name: "Download",
        components: {Tan, Top},
        methods:{
            down(){
              this.$store.commit("clicktan",true);
            }
        }
    }
</script>

<style scoped>
    .download{
        background-color: white;
         height: 41.5rem;
        width:100%
    }

    .logo{
        width:12rem;
        height:12rem;
        background-color: #3190e8;
        border-radius: 2rem;
        margin-left:6rem;
        margin-top: 2rem;
        text-align: center;
    }
    .logo i{
        color:white ;
        font-size: 12rem;
    }
    .logo p{
        font-size: 1.3rem;
        color: #666;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    .down{
        background-color: #4cd964;
        font-size: 1.2rem;
        color: #fff;
        height: 3rem;
        text-align: center;
        margin: 0 .7rem;
        line-height:3rem;
        border-radius: .2rem;
        margin-top: 5rem;
    }

    .top .icon{
        width: 4rem;
        height:4rem;
        border: .2rem solid #f8cb86;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: absolute;
        top: 1rem;
        left:7rem;

    }
    .top .icon span:first-of-type{
        width: .14rem;
        height: 1.5rem;
        background-color: #f8cb86;
    }
    .top .icon span:nth-of-type(2){
        width: .22rem;
        height: .2rem;
        border: 1px;
        border-radius: 50%;
        margin-top: .2rem;
        background-color: #f8cb86;
    }

</style>